﻿@model Bordspil.Models.LoginModel

@{
    ViewBag.Title = "Innskrá";
}
<div id="groups">
<hgroup class="title">
    <h2 class="headingText">Innskráning</h2>
</hgroup>

@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl })) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset id="registerField">
        <ol>
            <li>
                @Html.LabelFor(m => m.UserName)
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </li>
            <li>
                @Html.LabelFor(m => m.Password)
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </li>
            <li>
                @Html.CheckBoxFor(m => m.RememberMe)
                @Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" })
            </li>
        </ol>
        <input class="registerButton" type="submit" value="Innskrá" id="move-button" />
    </fieldset>
    <p id="registerOnLogin">
        @Html.ActionLink("Nýskrá", "Register") ef þú átt ekki þegar aðgang
    </p>
}

@* <section class="social" id="socialLoginForm">
    <h2>Use another service to log in.</h2>
    @Html.Action("ExternalLoginsList", new { ReturnUrl = ViewBag.ReturnUrl })
</section> *@

    </div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
